
<template>
  <div class="retailmember">
      <div class="item" v-for="(item,key) in Distribution" :key="key">
          <div class="left" >
              <div class="img">
                  <img :src="item.avatar_text" />
              </div>
              <div class="content">
                  <div class="nickname">{{ item.nickname }}</div>
                  <div class="tel">{{item.mobile_text}}</div>
              </div>
          </div>
          <div class="right">{{ item.createtime_text }}</div>
      </div>
  </div>

  <Tabbar />
</template>

<script setup>

import { onMounted } from 'vue';

    const {proxy} = getCurrentInstance()

    let business = proxy.$business.value
    let Distribution = ref([])

    onMounted(() => {
        BusinessInfo()
    })

    const BusinessInfo = async () => {
        var params = {
            busid: business.id,
        }

        var result = await proxy.$POST({
            url: '/Sale/index',
            params
        })

        Distribution.value = result.data

        console.log(Distribution.value)

    }

</script>

<style scoped>
  @import url('/assets/css/SaleBusiness.css');
</style>